<template>
  <div class="user-detail">
    <el-card class="box-card">
      <template #header>
        <div class="card-header">
          <span>用户详情</span>
        </div>
      </template>
      <el-descriptions :column="1" border>
        <el-descriptions-item label="用户ID">{{ route.params.id }}</el-descriptions-item>
        <el-descriptions-item label="用户名">示例用户</el-descriptions-item>
        <el-descriptions-item label="邮箱">example@example.com</el-descriptions-item>
        <el-descriptions-item label="注册时间">2024-01-01</el-descriptions-item>
      </el-descriptions>
    </el-card>
  </div>
</template>

<script setup lang="ts">
import { useRoute } from 'vue-router'

const route = useRoute()
</script>

<style scoped>
.user-detail {
  padding: 20px;
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
</style> 